//JavaScript for displaying the list of resources of a user in the right hand column
	

	function putUserResources(url){
	
	var method = "GET";
	
	YAHOO.util.Connect.asyncRequest(method, url, {
		success: function(o) {
			var s = o.responseText;
			var r = YAHOO.lang.JSON.parse(s);
			var innerHtml = document.getElementById("col-in").innerHTML;
			innerHtml = innerHtml + "<ul id='links'>";
			for(i=0; i<r.length;i++){
				var dUrl = url.substring(0, url.lastIndexOf("/", url)) + "/project/" + r[i].pid + "/download?rid=" + r[i].id;
				//innerHtml = innerHtml + "<li ><a class='qtipLink' id='"+r[i].pid+"' href='" + dUrl + "' >" + r[i].name+" ("+r[i].project.name+")" + "</a></li><hr class='noscreen' />";
				innerHtml = innerHtml + "<li ><a  style='word-wrap: break-word' class='qtipLink' name='" + r[i].project.name + "' id='"+r[i].pid+"' href='" + dUrl + "' >" + r[i].name+" ("+r[i].project.name+")" + "</a></li><hr class='noscreen' />";
			}
			innerHtml = innerHtml + "</ul>";
			document.getElementById("col-in").innerHTML = innerHtml;
		},
		failure: function(o) {
			var error = o.status + " " + o.statusText;
			alert(error);
		}
	});
}